/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-11-17 16:36:54
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-01-02 16:29:10
 * @FilePath: \ZHGD-Vue2\src\api\firstPage\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询接入及预警统计
export function countOne(query) {
  return request({
    url: '/zhgd/home/count',
    method: 'get',
    params: query
  })
}


export function newCountOne(query) {
  return request({
    url: '/zhgd/home/newCount',
    method: 'get',
    params: query
  })
}



// 拌合站今日生产统计
export function productToday(query) {
  return request({
    url: '/zhgd/home/productToday',
    method: 'get',
    params: query
  })
}

// 拌合站产能统计
export function productYear(query) {
  return request({
    url: '/zhgd/home/productYear',
    method: 'get',
    params: query
  })
}

// 各标段张拉梁片次数对比
export function tensionBeamNoCount(query) {
  return request({
    url: '/zhgd/home/tensionBeamNoCount',
    method: 'get',
    params: query
  })
}



// 当月各标段试验室设备在线统计
export function labDeviceOnlineCount(query) {
  return request({
    url: '/zhgd/home/labDeviceOnlineCount',
    method: 'get',
    params: query
  })
}

// 当月各标段拌合站设备在线统计
export function mixDeviceOnlineCount(query) {
  return request({
    url: '/zhgd/home/mixDeviceOnlineCount',
    method: 'get',
    params: query
  })
}

export function labEligibleCount(query) {
  return request({
// 参数 eligible 1合格 0不合格
    // url: '/zhgd/home/labEligibleCount',
    url: '/zhgd/home/selectLabEligibleCount',
    method: 'get',
    params: query
  })
}



